using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Controls_Common_Alert : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    public void ShowMessage(int Status, string Details)
    {

        lblMessageDetails.Text = Details;

        tblMessageAlert.Visible = true;
        if (Status == 1) // alert
        {
            lblMessageDetails.Text = Details;
            lblMessageError.Text = "";
        }
        else // error
        {
            lblMessageError.Text = Details;
            lblMessageDetails.Text = "";
        }
    }

    public void HideMessage()
    {
        tblMessageAlert.Visible = false;
    }
}
